package com.sailors.common.task.provider.domian.model.val;

import com.sailors.common.task.provider.infra.design.ddd.ValueObj;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Task pro value obj
 *
 * @description: 任务进度值对象
 * @author: cyj
 * @date 2022 -11-22 15:47:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaskProValueObj implements ValueObj {
    /**
     * task_log表id
     */
    private Long taskId;
    /**
     * 进度0-100，到100状态扭转为成功
     */
    private BigDecimal process;
    /**
     * 创建人
     */
    private String createBy;

    public TaskProValueObj(Long taskId, BigDecimal process, String createBy) {
        this.taskId = taskId;
        this.process = process;
        this.createBy = createBy;
    }

    /**
     * 创建时间
     */
    private Date createTime;
}
